<?php
namespace app\admin\model;
use think\Model;

class User extends Model {
    //登陆验证
    public function checkUser($user,$pwd) {
        return User::where([
            ['username','=',$user],
            ['password','=',md5($pwd)]
        ])->find();
    }

}